:: IORef a -> (a -> a) package:type-hint

Hint the type system about the type.